<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title>会员中心-{$web_config['web_title']}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<link href="/assets/css/frontend.min.css?v=1.0.1" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
        <link href="/assets/css/user.css?v=1.0.1" rel="stylesheet">
		<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    </head>

    <body>
        {include file="header"}
        <main class="content">
            <style>
    .basicinfo {
        margin: 15px 0;
    }

    .basicinfo .row > .col-xs-4 {
        padding-right: 0;
    }

    .basicinfo .row > div {
        margin: 5px 0;
    }
</style>
<div id="content-container" class="container">
    <div class="row">
        {include file="user_left"}
        <div class="col-md-10">
            <div class="panel panel-default ">
                <div class="panel-body">
					<h2 class="page-header">资金明细</h2>
                   <ul class="nav nav-pills" style="margin-bottom:10px;">
						<li role="presentation" {if empty($type)}class="active"{/if}><a href="{:url('user/score')}">全部</a></li>
						<li role="presentation" {if $type==1}class="active"{/if}><a href="{:url('user/score',array('type'=>1))}">余额</a></li>
						<li role="presentation" {if $type==2}class="active"{/if}><a href="{:url('user/score',array('type'=>2))}">佣金</a></li>
					</ul>
				   <div class="form-group">
					   
                            <table class="table table-striped table-bordered table-hover table-nowrap">
                                <thead>
                                <tr>
									<th>方向</th>
                                    <th>变动金额</th>
                                    <th>变动后金额</th>
									<th>备注</th>
                                    <th>时间</th>
									<th>资金方向</th>
									<th>所属</th>
                                </tr>
                                </thead>
                                <tbody>
									{volist name="capital" id="vo"}
									<tr>
										<td>{if $vo.cl_direction==1}增加{else}减少{/if}</td>
										<td>{$vo.cl_money}</td>
										<td>{$vo.cl_balance}</td>
										<td>{$vo.cl_content}</td>
										<td>{$vo.cl_addtime}</td>
										<td>
											{if $vo.cl_type==1}充值
											{elseif $vo.cl_type==2}礼物下单
											{elseif $vo.cl_type==3}佣金
											{elseif $vo.cl_type==4}提现
											{elseif $vo.cl_type==5}提现失败退回
											{elseif $vo.cl_type==6}任务下单
											{elseif $vo.cl_type==7}任务退回
                                            {elseif $vo.cl_type==8}完成任务
											{/if}</td>
										<td>{if $vo.cl_attribution==1}余额{else}拥金{/if}</td>
									</tr>
									{/volist}
                                </tbody>
                            </table>
                            <div class="fixed-table-pagination">{$page}</div>
                        </div>
				   
				   
				   
					
                </div>
            </div>
        </div>
    </div>
</div>
        </main>
		{include file="footer_content"}
<script>
$(".sub").click(function(){
	var send_phone = $("#send_phone").val();
	var send_name  = $("#send_name").val();
	
	$.ajax({
		type:"POST",
		url:"{:url('user/sendinfo')}",
		dataType:"json",
		data:{
			send_phone:send_phone,
			send_name:send_name,
		},
		success:function(res){
			if(res.status == "success"){
				window.location.reload();
				//alert(res.data);
			}else{
				alert(res.data);
			}
		},
		error:function(jqXHR){
			console.log("Error: "+jqXHR.status);
		},
	});
	
});
</script>
    </body>
</html>